home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / RandomDot 1.1.0 / headers / RandomDotWin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-21  |  1.7 KB  |  54 lines  |  [TEXT/KAHL]

  1. /* RandomDotWin.h
  2.     by David Phillip Oster October 1994 oster@netcom.com
  3.     for:
  4.     Stuart Inglis singlis@waikato.ac.nz
  5.     Department of Computer Science
  6.     University of Waikato, Hamilton, New Zealand
  7.  */
  8.  
  9. /* These bits are in the flags long, below.
  10.  */
  11. #define bSaved            (1L << 0)
  12. #define bShowGray        (1L << 1)    /* mutually exclusive */
  13. #define bShowGrayStereo    (1L << 2)    /* mutually exclusive */
  14. #define bShowBWStereo    (1L << 3)    /* mutually exclusive */
  15. #define bIsShimmer        (1L << 4)    /* true if we should animate the palette */
  16. #define kShow            (bShowGray|bShowGrayStereo|bShowBWStereo|bIsShimmer)
  17. #define bIsGray            (1L << 5)    /* true if the stereogram is gray */
  18.  
  19. typedef struct RandomDotWindowRec {
  20.     WindowRecord    win;
  21.     LongInt            flags;
  22.     Rect            frame;
  23.     CGrafPtr        grayImage;        /* actually GWorld, but don't require that include file be all ready read in */
  24.     CGrafPtr        stereoImage;    /* actually GWorld, but don't require that include file be all ready read in */
  25.     ControlHandle    hScroll;
  26.     ControlHandle    vScroll;
  27.     FSSpec            fs;
  28.     ScriptCode        code;
  29. }RandomDotWindowRec, *RandomDotWindowPtr;
  30.  
  31. extern CTabHandle        grayCTab;
  32.  
  33. OSErr RandomDotOpen(FSSpecPtr fs, ScriptCode code);
  34.  
  35. OSErr InitRandomDot(void);
  36.  
  37.  
  38. void RandomDotDisposeWindow(WindowPtr win);
  39. void RandomDotKey(EventRecord *e);
  40. void RandomDotClick(EventRecord *e);
  41. void RandomDotIdle(EventRecord *e);
  42. void RandomDotUpdate(void);
  43. void RandomDotActivate(void);
  44. void RandomDotDeactivate(void);
  45. void RandomDotGrow(void);
  46. void RandomDotGrowBounds(Rect *rp);
  47. void RandomDotPalette(void);
  48. void RandomDotCopybitsWin(RandomDotWindowPtr win, Rect *framep);
  49. void RandomDotIdealSize(WindowPtr win, Rect *rp);
  50.  
  51. /* shimmer mode support.
  52.  */
  53. void ShimmerDotPalette(void);
  54.